/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cinema.client.cinemaclient.main;

import com.cinema.client.cinemaclient.ui.LoginFrame;

/**
 *
 * @author Zsolt Szecsi
 */
public class Main {
    
    public static void main(String[] args) {
        System.out.println("Hello");

//        MovieManager movieManager = new MovieManager();
////////////////////////
/////MOVIE/////////////
///////////////////////        
// GET BY ID
//        Movie movie = movieManager.getMovieById(111);
//
//        System.out.println("Movie title is: " + movie.getTitle());
// GET ALL
//        List<Movie> movies = movieManager.getAllMovies();
//
//        System.out.println("Movie title is: " + movies.get(1).getTitle());
// INSERT
//        Movie insert = new Movie(0, "Ez egy cim", "rendezo", 2000);
//
//        insert = movieManager.insertMovie(insert);
//
//        System.out.println("Id of new item is: " + insert.getId());
//UPDATE
//        Movie update = new Movie(120, "Ez egy mas cim", "rendezo", 2000);
//
//        update = movieManager.updateMovie(update);
//
//        System.out.println("The new title: " + update.getTitle());
//DELETE
//        movieManager.deleteMovie(118);
////////////////////////
/////ACTOR/////////////
///////////////////////
//        ActorManager actorManager = new ActorManager();
//
//        List<Actor> actors = actorManager.getAllActors();
//
//        System.out.println("Number of actors in database is: " + actors.size());
////////////////////////
/////USER/////////////
///////////////////////
//        
// INSERT        
//        UserManager userManager = new UserManager();
//        User user = new User(0, "Zoltanka", "user2", "alma", "employee");
//
//        user = userManager.insertUser(user);
//
//        System.out.println("New user id is :" + user.getId());
//
// UPDATE
//        User user = new User(2, "Zoltanka", "user2", "almaKorte", "employee");
//
//        user = userManager.updateUser(user);
//
//        System.out.println("The new password is: " + user.getPassword());
//
// GET BY USERNAME        
//        User user = userManager.getUserByUsername("user2");
//
//        System.out.println("user2 is :" + user.getName());
////////////////
////Init UI////
//////////////
        LoginFrame loginFrame = new LoginFrame();
        loginFrame.setVisible(true);
        
    }
    
}
